package com.agnes.phone.listener;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;

import com.agnes.phone.R;

public class PhoneStateListenerPage extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_phone_state);

        PhoneUtil.getInstance().registerPhoneState(this);

    }


    @Override
    protected void onDestroy() {
        super.onDestroy();
        PhoneUtil.getInstance().unRegisterPhoneState();
    }
}
